import request from '@/utils/request'
//已发布课程

// 查询课程信息列表
export function listCourseSubscribe(query) {
  return request({
    url: '/subscribe/courseSubscribe/getReleaseCourse',
    method: 'get',
    params: query
  })
}

// 查询课程信息详细
export function getCourseSubscribe(id) {
  return request({
    url: '/subscribe/courseSubscribe/' + id,
    method: 'get'
  })
}
// 修改课程状态(撤销发布)
export function updateCancelRelease(id,cancelCause) {
  return request({
    url: '/subscribe/courseSubscribe/updateCancelRelease',
    method: 'put',
    params : {
      id,cancelCause
    }
  })
}
